package service;

import static android.content.ContentValues.TAG;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;
import android.widget.Toast;

public class KitchenService extends Service {
    public KitchenService() {
    }
    @Override
    public void onCreate() {
        super.onCreate();
        Toast.makeText(this, "开始接单！", Toast.LENGTH_LONG).show();
        Log.d(TAG, "服务生命周期: 服务创建");
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        Toast.makeText(this, "结束接单！", Toast.LENGTH_LONG).show();
        Log.d(TAG, "服务生命周期: 服务销毁");
    }

    @Override
    public IBinder onBind(Intent intent) {
        // TODO: Return the communication channel to the service.
        throw new UnsupportedOperationException("Not yet implemented");
    }
}